function [ROI_act_aux]=map_ROI_act_to_aux_data(ROI_act,frame_times,aux_data_length)

ROI_act_aux=zeros(aux_data_length,1);

% add offset of last frame manually
frame_times=round([frame_times frame_times(end)+min(diff(frame_times))]);



for ind=1:length(frame_times)-1
    ROI_act_aux(frame_times(ind):frame_times(ind+1)-1)=ROI_act(ind);
end


